﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<script type="text/javascript">
    function displaybutton(){
        document.getElementById("button1").style.display='none';
    }
    function select_project(type) {
        var temp='<%=HttpContext.Current.Request["PID"] %>';
        var url = '../BCSSManage/ZS_SelectUser.aspx?TYPE=' + type + '&PID='+temp+'&rd=' + Math.random();
        var feature = "dialogWidth:" + 1000 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            document.getElementById('<%=产权人.ClientID %>').value = project_info[1];
            document.getElementById('<%=丘号.ClientID %>').value = project_info[2];
            document.getElementById('<%=房屋坐落.ClientID %>').value = project_info[3];
            document.getElementById('<%=房屋权证编号.ClientID %>').value = project_info[4];
            document.getElementById('<%=房屋面积.ClientID %>').value = project_info[5];
            document.getElementById('<%=承租人.ClientID %>').value = project_info[6];
            document.getElementById('<%=房屋用途.ClientID %>').value = project_info[7];
            document.getElementById('<%=使用性质.ClientID %>').value = project_info[8];
            document.getElementById('<%=房屋结构.ClientID %>').value = project_info[9];
            document.getElementById('<%=所属层次.ClientID %>').value = project_info[10];
            document.getElementById('<%=土地权证编号.ClientID %>').value = project_info[11];
            document.getElementById('<%=土地面积.ClientID %>').value = project_info[12];
            document.getElementById('<%=征收区位等级.ClientID %>').value = project_info[13];
            document.getElementById('<%=所属类别.ClientID %>').value = project_info[14];
            document.getElementById('<%=txtZSPID.ClientID %>').value = project_info[0];
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=产权人.ClientID %>').value;
        if (t1 == null || t1 == "") {
            alert('请点击选择人员进行人员选择！');
            return false;
        } else {
        return true;
        }
    }
    function OpenFileUpload(cqid,cid,pid) {
        window.open('../ZSManage/FileUpload1.aspx?usetype=13&pid='+pid+'&cid='+cid+'&cqid=' + cqid, '文件上传', 'height=600px,width=800px;toolbar =no,menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');
    }
    function ckNumber(obj) {
        var tt = 'ctl00_MainerRegion_ZSPG_YYBCJFHAddControl___';
        var t1 = tt + obj;
        var ctrlTemp = document.getElementById(t1);
        if (ctrlTemp != null) {
            if (isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value = '';
            }
            var tt=ctrlTemp.value;
            ctrlTemp.value=trim(tt);
        }
    }
    function ltrim(s){ 
        return s.replace( /^\s*/,""); 
    } 
    function rtrim(s){ 
        return s.replace( /\s*$/,""); 
    } 
    function trim(s){ 
        return ltrim(rtrim(s)); 
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
                <td valign="middle" height="30">
                    <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                        &nbsp;营业性房屋征收补偿金额分户评估  </font>
                </td>
            </tr>
        </table>
        <table border="1" cellpadding="0" cellspacing="0" id="compensationfundestimate" style="border-collapse: collapse;
            table-layout: fixed; width: 99%; text-align: center;" class="window_tab_list">
            <tr>
                <th colspan="14" style="text-align: center; line-height: 20px;">
                    营业性房屋征收补偿金额分户评估
                    </th>
                </tr>
            <tr style='height: 15.0pt'>
                <td>房屋坐落</td>
                <td colspan="2"><asp:TextBox ID="房屋坐落" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td>产权人</td>
                <td colspan="2"><asp:TextBox ID="产权人" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td colspan="2">承租人</td>
                <td colspan="2"><asp:TextBox ID="承租人" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td colspan="2">房屋用途</td>
                <td colspan="2"><asp:TextBox ID="房屋用途" runat="server" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>使用性质</td>
                <td colspan="2"><asp:TextBox ID="使用性质" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td>丘号</td>
                <td colspan="2"><asp:TextBox ID="丘号" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td colspan="2">所属层次</td>
                <td colspan="2"><asp:TextBox ID="所属层次" runat="server" Width="70px" onfocus="this.blur()"></asp:TextBox></td>
                <td colspan="2">房屋结构</td>
                <td colspan="2"><asp:TextBox ID="房屋结构" runat="server" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td rowspan="2">权证编号</td>
                <td>房屋</td>
                <td><asp:TextBox ID="房屋权证编号" runat="server" onfocus="this.blur()" Width="70px"></asp:TextBox></td>
                <td rowspan="2">面积(m2)</td>
                <td>房屋</td>
                <td><asp:TextBox ID="房屋面积" runat="server" onfocus="this.blur()" Width="70px"></asp:TextBox></td>
                <td rowspan="2" colspan="2">征收区位等级</td>
                <td rowspan="2" colspan="2"><asp:TextBox ID="征收区位等级" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td rowspan="2" colspan="2">所属类别</td>
                <td rowspan="2" colspan="2"><asp:TextBox ID="所属类别" runat="server" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>土地</td>
                <td><asp:TextBox ID="土地权证编号" runat="server" Width="70px" onfocus="this.blur()"></asp:TextBox></td>
                <td>土地</td>
                <td><asp:TextBox ID="土地面积" runat="server" Width="70px" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td rowspan="5">市场比较法</td>
                <td>可比实例</td>
                <td>区位级别</td>
                <td colspan="2">房屋结构</td>
                <td>交易时间</td>
                <td>交易情况</td>
                <td>用途性质</td>
                <td>成交单价(元)</td>
                <td>比准价格(元)</td>
                <td colspan="2">评估单价</td>
                <td colspan="2">备注</td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>A</td>
                <td><asp:TextBox ID="txtYY区位级别A" runat="server" Width="70px"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY房屋结构A" runat="server"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易时间A" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易情况A" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY用途性质A" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY成交单价A" runat="server" Width="70px" onchange="ckNumber('txtYY成交单价A')"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY比准价格A" runat="server" Width="70px" onchange="ckNumber('txtYY比准价格A')"></asp:TextBox></td>
                <td rowspan="4" colspan="2"><asp:TextBox ID="txtYY市场比较评估单价" runat="server" TextMode="MultiLine" Height="50px"  onchange="ckNumber('txtYY市场比较评估单价')"></asp:TextBox></td>
                <td rowspan="4" colspan="2"><asp:TextBox ID="txtYY市场比较评估备注" runat="server" TextMode="MultiLine" Height="50px"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>B</td>
                <td><asp:TextBox ID="txtYY区位级别B" runat="server" Width="70px"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY房屋结构B" runat="server"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易时间B" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易情况B" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY用途性质B" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY成交单价B" runat="server" Width="70px"   onchange="ckNumber('txtYY成交单价B')"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY比准价格B" runat="server" Width="70px"   onchange="ckNumber('txtYY比准价格B')"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>C</td>
                <td><asp:TextBox ID="txtYY区位级别C" runat="server" Width="70px"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY房屋结构C" runat="server"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易时间C" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易情况C" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY用途性质C" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY成交单价C" runat="server" Width="70px"   onchange="ckNumber('txtYY成交单价C')"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY比准价格C" runat="server" Width="70px"   onchange="ckNumber('txtYY比准价格C')"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>D</td>
                <td><asp:TextBox ID="txtYY区位级别D" runat="server" Width="70px"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY房屋结构D" runat="server"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易时间D" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY交易情况D" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY用途性质D" runat="server" Width="70px"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY成交单价D" runat="server" Width="70px"   onchange="ckNumber('txtYY成交单价D')"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY比准价格D" runat="server" Width="70px"  onchange="ckNumber('txtYY比准价格D')"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td rowspan="2">收益法</td>
                <td colspan="2">年纯收益a</td>
                <td>资本化率r</td>
                <td colspan="4">收益年期n</td>
                <td colspan="4">评估单价</td>
                <td colspan="2"></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="2"><asp:TextBox ID="txtYY年纯收益" runat="server"  onchange="ckNumber('txtYY年纯收益')"></asp:TextBox></td>
                <td><asp:TextBox ID="txtYY资本化率" runat="server" Width="70px"></asp:TextBox></td>
                <td colspan="4"><asp:TextBox ID="txtYY收益年期" runat="server" ></asp:TextBox></td>
                <td colspan="4"><asp:TextBox ID="txtYY收益评估单价" runat="server"  onchange="ckNumber('txtYY收益评估单价')"></asp:TextBox></td>
                <td colspan="2"></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td>评估单价</td>
                <td colspan="2">评估总价(元)</td>
                <td colspan="2">评估补偿金额(元)</td>
                <td colspan="3">产权人补偿款(元)</td>
                <td colspan="3">承租人补偿款(元)</td>
                <td colspan="3">备注</td>
            </tr>
            <tr style='height: 15.0pt'>
                <td><asp:TextBox ID="txtYY评估单价" runat="server" Width="70px" onchange="ckNumber('txtYY评估单价')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY评估总价" runat="server" onchange="ckNumber('txtYY评估总价')"></asp:TextBox></td>
                <td colspan="2"><asp:TextBox ID="txtYY评估补偿金额" runat="server" Width="70px" onchange="ckNumber('txtYY评估补偿金额')"></asp:TextBox></td>
                <td colspan="3"><asp:TextBox ID="txtYY产权人补偿款" runat="server" onchange="ckNumber('txtYY产权人补偿款')"></asp:TextBox></td>
                <td colspan="3"><asp:TextBox ID="txtYY承租人补偿款" runat="server" onchange="ckNumber('txtYY承租人补偿款')"></asp:TextBox></td>
                <td colspan="3"><asp:TextBox ID="txtYY备注" runat="server"></asp:TextBox></td>
            </tr>
            <tr style='height: 15.0pt'>
                <td colspan="9"></td>
                <td>日期：</td>
                <td colspan="2"><CBW:MPCalendar ID="txtYY日期" runat="server" /></td>
                <td colspan="2"><asp:TextBox ID="txtYY空输入框" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="14">
                <asp:Button ID="btnUpload" runat="server" Text="附件上传" />
                    <input id="button1" type="button" value="选择人员" onclick="select_project('yyfh')" />&nbsp;&nbsp;
        <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />&nbsp;&nbsp;
        <input type="button" value="返回" onclick="javascript:window.location.href=('ZSPG_YYBCJFHInfo.aspx?PID=<%=HttpContext.Current.Request["PID"] %>');" />
                </td>
            </tr>
        </table>
    <div style="display: none;">
        <asp:TextBox ID="txtPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtZSPID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txt评估分户类型" runat="server" Text="1"></asp:TextBox>
    </div>
    <CBW:MPPersistence  ID="Persistence1" runat="server"></CBW:MPPersistence>
</asp:Panel>